package com.demo.spring.循环依赖.lazy;

import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

@Service
public class Test1 {
	
	private Test2 test2;
	
	public Test1(@Lazy Test2 test2) {
		this.test2 = test2;
	}

	public Test2 getTest2() {
		return test2;
	}
	
}
